/* CrawlWrapper
 * Wraps an object to make it serializable and include a message
 */

package ubc;

import java.io.Serializable;

/**
 *
 * @author Yan
 */
public class CrawlWrapper implements Serializable{

    public static int FULL_MODE = ubc.Constants.FULL_MODE;
    public static int MINIMAL_MODE = ubc.Constants.MINIMAL_MODE;
    public static int QUIT = 2;

    int _msg;
    Object _obj;

    public CrawlWrapper(Object obj, int msg) {
        _msg = msg;
        _obj = obj;
    }

    public int getMessage() {
        return _msg;
    }

    public Object getObject() {
        return _obj;
    }

}
